Customer
@objc(LSCustomer)
final class Customer
extension Customer : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Equatable, Hashable, NSObjectProtocol
LicenseSpring Customer information.
-
Customer email address.
Declaration
Swift
@objc var email: String? -
Customer first name.
Declaration
Swift
@objc var firstName: String? -
Customer last name.
Declaration
Swift
@objc var lastName: String? -
Customer company name.
Declaration
Swift
@objc var company: String? -
Customer phone number.
Declaration
Swift
@objc var phone: String? -
Customer address.
Declaration
Swift
@objc var address: String? -
Customer city.
Declaration
Swift
@objc var city: String? -
Customer state.
Declaration
Swift
@objc var state: String? -
Customer country.
Declaration
Swift
@objc var country: String? -
Customer postcode/zipcoder.
Declaration
Swift
@objc var postcode: String? -
Customer reference.
Declaration
Swift
@objc var reference: String? -
Metadata JSON.
Declaration
Swift
@objc var metadata: Data? -
init(email:firstName: lastName: company: phone: address: city: state: country: postcode: reference: metadata: ) Creates
Customerinstance with parameters.Declaration
Swift
@objc init(email: String?, firstName: String? = nil, lastName: String? = nil, company: String? = nil, phone: String? = nil, address: String? = nil, city: String? = nil, state: String? = nil, country: String? = nil, postcode: String? = nil, reference: String? = nil, metadata: Data? = nil)Parameters
emailCustomer email address.
firstNameCustomer first name.
lastNameCustomer last name.
companyCustomer company name.
phoneCustomer phone number.
addressCustomer address.
cityCustomer city.
stateCustomer state.
countryCustomer country.
postcodeCustomer postcode/zipcoder.
referenceCustomer reference.
metadataCustomer metadata JSON.
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
required init(from decoder: any Decoder) throws